package com.qujia.customer.service;


import com.qujia.common.enums.WxConsumptionMessageEnum;
import com.qujia.customer.domain.ActivityMessagePushRecord;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.util.List;

/**
 * (ActivityMessagePushRecord)表服务接口
 *
 * @author makejava
 * @since 2023-09-20 16:05:26
 */
public interface ActivityMessagePushRecordService {

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    ActivityMessagePushRecord queryById(Long id);

    /**
     * 分页查询
     *
     * @param activityMessagePushRecord 筛选条件
     * @param pageRequest      分页对象
     * @return 查询结果
     */
    Page<ActivityMessagePushRecord> queryByPage(ActivityMessagePushRecord activityMessagePushRecord, PageRequest pageRequest);

    /**
     * 新增数据
     *
     * @param activityMessagePushRecord 实例对象
     * @return 实例对象
     */
    ActivityMessagePushRecord insert(ActivityMessagePushRecord activityMessagePushRecord);

    /**
     * 修改数据
     *
     * @param activityMessagePushRecord 实例对象
     * @return 实例对象
     */
    ActivityMessagePushRecord update(ActivityMessagePushRecord activityMessagePushRecord);

    /**
     * 通过主键删除数据
     *
     * @param id 主键
     * @return 是否成功
     */
    boolean deleteById(Long id);

    Integer sendWxMessage(Long businessId,String businessName,String content,Integer sendFlag);
    Integer sendWxMessage(Long businessId, String businessName);
    Integer sendWxMessage(String channel, String jsonStr, WxConsumptionMessageEnum messageEnum);

    List<ActivityMessagePushRecord> query(ActivityMessagePushRecord pushRecord);

}
